package com.eidos.blogs.common.controller;

import com.eidos.blogs.common.rest.Resp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author ： Eidos
 * @date ：Created in 2021/1/25
 * @description：
 * @modified By：
 * @version: 1.0
 */

@RestController
@RequestMapping("common/")
@Api(value = "公共API", tags = "公共API")
@Slf4j
public class CommonController extends BaseController {

    @ApiOperation(value = "基础请求", nickname = "基础请求")
    @PostMapping("/base_request")
    public Resp<Boolean> baseRequest(HttpServletRequest request) {
        return Resp.success(Boolean.TRUE);
    }
}
